Skip to content

Conversation

@mingwandroid
Copy link

@mingwandroid mingwandroid commented Jun 11, 2017

For discussion: In the Anaconda Distribution (on Linux), we cannot set LD_LIBRARY_PATH and also want to have as dynamic a Java configuration as possible (various Java implementations are available). On Windows we augment PATH before attempting to load the rJava DLL.

Use the values from Makeconf to find java (Unix), falling back to JAVA_HOME (which is needed on Windows). Add the directory to PATH on Windows or dyn.load the shared library it on Linux. macOS is kept largely the same as it was except we check Makeconf before JAVA_HOME.

I hope this doesn't break lot of other things and that the approach is acceptable. I should state, I'm not much of an R programmer and so would welcome any and all feedback.

Use the values from  Makeconf to find java (Unix), falling back to
JAVA_HOME (which is needed on Windows). Add the directory to PATH
on Windows or dyn.load the shared library it on Linux. macOS is
kept largely the same as it was except we check Makeconf before
JAVA_HOME.
@mingwandroid
Copy link
Author

Can you provide any feedback @s-u?

@mingwandroid
Copy link
Author

(I am now aware that Windows doesn't use this codepath btw)

@s-u
Copy link
Owner

s-u commented Jan 19, 2026

This is not the way to go - have a look at https://github.com/s-u/rJava/tree/feature/dynamic which is likely the path forward if we also want dynamic loading on Linux. It has not been a priority, but if those Linux users that care (likely a tiny minority) could provide some testing then it would be worth adding it.

@s-u s-u closed this Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants